/**
 * 
 */
package com.hand.cloud.b2b.daos;

import de.hybris.platform.core.model.c2l.CountryModel;
import de.hybris.platform.core.model.c2l.RegionModel;
import de.hybris.platform.core.model.user.AddressModel;

import com.hand.cloud.b2b.model.EPAddressModel;


/**
 * @author StephenWang
 * @time Aug 5, 2014 1:34:21 PM
 * 
 */
public interface AddressDAO
{
	/**
	 * 新生成地址信息
	 * 
	 * @return
	 */
	public AddressModel createAddress(EPAddressModel address);


	/**
	 * @param isoCode
	 * @param country
	 * @return
	 */
	public RegionModel getRegionByCode(String isoCode, CountryModel country);

	/**
	 * 创建区域（省）
	 * 
	 * @param regionName
	 * @param country
	 * @return
	 */
	public RegionModel createRegion(String regionName, CountryModel country);

	/**
	 * 通过国标码获取国家信息
	 * 
	 * @param isoCode
	 * @return
	 */
	public CountryModel getCountry(String isoCode);
}
